package com.xxg.renrencommon.domain.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 分页获取列表
 *
 * @author szj
 * @date 2021/05/26
 */
@Data
@ApiModel(value = "GetListQuery", description = "分页获取列表参数")
public class GetListQuery {
    @NotNull(message = "pageNo不能为null")
    @Min(value = 1, message = "pageNo的值不能小于1")
    @ApiModelProperty(value = "页码")
    private Integer pageNo;
    @NotNull(message = "pageSize不能为null")
    @Min(value = 1, message = "pageSize的值不能小于1")
    @Max(value = 100, message = "pageSize的值不能大于100")
    @ApiModelProperty(value = "页大小")
    private Integer pageSize;
}
